//
//  CMonsterData.h
//  FlashAnimation
//
//  Created by chiawei.tseng on 12/12/27.
//
//

#ifndef CMonsterData_H
#define CMonsterData_H

#include <map>
#include <string>
#include "Singleton.h"
#include "XmlDef.h"

using namespace std;

struct MONSTER_DATA
{
    char ArmatureName[TEST_NAME_MAX];
    char AnimationName[TEST_NAME_MAX];
    char PnlName[TEST_NAME_MAX];
};


//todo
class CMonsterDatas : public Singleton<CMonsterDatas>
{
public:
    
    CMonsterDatas(){}
    
    virtual ~CMonsterDatas(){}
    
    virtual void Init();
    
    MONSTER_DATA LoadMonsterData(const char* pMonsterName);

protected:
    
    void LoadXMLData();
    
private:
    
    map<string, MONSTER_DATA> mapMonsterData;
    
};


#endif
